<?php
$jssdk = new BAWechatJsSDKCooker("wxdfdd543f3624de1a", "0d263ad0ccbd55da5f61b105ffd90ef8");
$signPackage = $jssdk->GetSignPackage();
?>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
    wx.config({
//       debug: true,
        appId: '<?php echo $signPackage["appId"]; ?>',
        timestamp: <?php echo $signPackage["timestamp"]; ?>,
        nonceStr: '<?php echo $signPackage["nonceStr"]; ?>',
        signature: '<?php echo $signPackage["signature"]; ?>',
        jsApiList: [
            'onMenuShareTimeline',
            'onMenuShareAppMessage',
            'onMenuShareQQ',
            'onMenuShareWeibo'
        ]
    });
</script>
<script src="<?php echo Yii::app()->request->baseUrl . '/js/mobile/weChatShareJs.js' ?>"></script>
